﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Description;

namespace TestVersionamentoServizi
{
    class Program
    {
        static void Main(string[] args)
        {
            ServiceReference1.UtenteControllerClient client = new ServiceReference1.UtenteControllerClient();
            ServiceReference1.Utente utente = client.GetUtente(new ServiceReference1.Utente() {  Nome = "pippo", Cognome = "rossi", Indirizzo = "via roma", Eta="10" });
        }

        //static void DefineSurrogate(ServiceEndpoint endpoint)
        //{
        //    foreach (var operation in endpoint.Contract.Operations)
        //    {
        //        var dcsob = operation.Behaviors.Find<DataContractSerializerOperationBehavior>();
        //        dcsob.DataContractSurrogate = null;
        //    }
        //}
    }
}
